Preoperative frailty diagnostic